package com.enba.mallapi.module.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@TableName("t_user")
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("用户编码")
  private String userCode;

  @ApiModelProperty("用户名")
  private String username;

  @ApiModelProperty("密码")
  private String password;

  @ApiModelProperty("手机号")
  private String mobile;

  @ApiModelProperty("邮箱")
  private String email;

  @ApiModelProperty("部门id")
  private Long deptId;

  @ApiModelProperty("单位id")
  private Long orgId;

  @ApiModelProperty("状态（0：禁用 1：可用）")
  private Integer status;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;

  @ApiModelProperty("删除（0：未删除 1：已删除）")
  private Integer deleted;
}
